package org.lanqiao.webfm.model;


import java.util.*;
import java.io.Serializable;
import java.sql.*;
import java.lang.reflect.*;

import javacommon.base.*;
import javacommon.ijdbc.*;
import javacommon.util.*;
import javacommon.web.page.*;

import org.lanqiao.webfm.model.*;

import org.slf4j.*;

/**
*@Author zhengwei
**/
public class UserinfoMapper implements RowMapper<Userinfo>{
	public Userinfo mapRow(ResultSet rs) throws SQLException {
		Userinfo model = new Userinfo();
		model.setId(rs.getLong("ID"));
		model.setUsername(rs.getString("USERNAME"));
		model.setPwd(rs.getString("PWD"));
		model.setEmail(rs.getString("EMAIL"));
		model.setRealname(rs.getString("REALNAME"));
		model.setGender(rs.getLong("GENDER"));
		model.setQuestion(rs.getString("QUESTION"));
		model.setAnswer(rs.getString("ANSWER"));
		model.setPhone(rs.getString("PHONE"));
		model.setMypage(rs.getString("MYPAGE"));
		model.setHobbies(rs.getString("HOBBIES"));
		model.setSelfintro(rs.getString("SELFINTRO"));
		return model;
	}
}